﻿<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="SzCourt.WebSite.manager.login" %>
<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register src="~/control/manager/menu.ascx" tagname="menu" tagprefix="uc4" %>
<%@ Register src="~/control/partselect.ascx" tagname="partselect" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员登录- 深圳市中级人民法院 </title>
    <meta id="ctl00_KeyWD" content="深圳,中级,法院,诉讼,政府" name="Keywords" />
    <meta id="ctl00_desP" content="深圳市中级人民法院" name="description" />
    <link href="/images/skin2010/base.css" rel="stylesheet" type="text/css" />
    <script src="/js/sw.js" type="text/javascript"></script>
</head>
<body>
    <div id="SZCOURT">
        <uc1:header ID="header1" runat="server" />
        <div class="content">
            <div class="dl">
                &nbsp;
            </div>
            <div class="dr">
                <uc5:partselect ID="partselect1" runat="server" />
                <!-- 用户登录 -->
                <div class="tab">
                    <div class="tt">
                        <h3>管理员登录</h3>
                        <p class="clear"></p>
                    </div>
                    <div class="mgn10">
                        <span class="red" id="spMessage" runat="server"></span>
                    </div>
                    <div class="g_cf mgn30 g_tc"> 
                        <form name="form1" action="login.aspx" method="post" onsubmit="return CheckInfo();">                     
                        <table cellpadding="0" cellspacing="0" class="tbl" style="margin-left:100px;">
                            <tr>
                                <th>用户名：</th>
                                <td><input type="text" class="txt" id="txtName" name="txtName" value="" /><span class="red">*</span>4-10个字符，不能使用特殊字符！</td>
                            </tr>
                            <tr>
                                <th>密码：</th>
                                <td><input type="password" class="txt" id="txtPassword" name="txtPassword" value="" /><span class="red">*</span>大于5小于15个字符.不能使用特殊字符！</td>
                            </tr>
                            <tr>
                                <th>&nbsp;</th>
                                <td><input type="submit" class="btn w60" value="登录" /></td>
                            </tr>
                        </table>
                        </form>
                    </div>
                    
                </div>
            </div>
            <div class="g_cf">
            </div>
        </div>

        <uc2:footer ID="footer1" runat="server" />
    </div>
</body>
</html>
<script type="text/javascript">
    function CheckInfo() {
        var sName = document.getElementById("txtName").value;
        var re = /^^[a-zA-Z0-9\-]{4,10}$|^[a-zA-Z0-9\-]{4,10}\.[a-zA-Z0-9\-]{4,10}$/;
        if (!re.test(sName)) {
            alert("用户名必须为4-10个字符，不能使用特殊字符！");
            return false;
        }

        var sPassword = document.getElementById("txtPassword").value;
        var re1 = /^^[a-zA-Z0-9\-]{5,15}$|^[a-zA-Z0-9\-]{5,15}\.[a-zA-Z0-9\-]{5,15}$/;
        if (!re1.test(sPassword)) {
            alert("密码必须为大于5小于15个字符.不能使用特殊字符！");
            return false;
        }

        return true;
    }
</script>